package com.myproject.shop.domain;

import io.swagger.annotations.ApiModel;

import java.util.Date;

@ApiModel
public class Inventory {
    private Integer iid; // 库存编号，对应数据库中的iid字段，作为主键
    private Integer gid; // 商品编号

    public Integer getIid() {
        return iid;
    }

    public void setIid(Integer iid) {
        this.iid = iid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getCurrentStock() {
        return currentStock;
    }

    public void setCurrentStock(Integer currentStock) {
        this.currentStock = currentStock;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Integer getWid() {
        return wid;
    }

    public void setWid(Integer wid) {
        this.wid = wid;
    }

    private Integer currentStock; // 当前库存数量
    private Date lastUpdateTime; // 上次更新时间
    private Integer wid; // 仓库编号
}
